package com.ruoyi.withdrawal.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.core.domain.Entity;

/**
 * 提现管理对象 mg_withdrawal
 * 
 * @author ruoyi
 * @date 2024-01-17
 */
public class Withdrawal extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Integer id;

    private int[] ids;
    
    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 姓名（冗余 realname) */
    @Excel(name = "姓名")
    private String userName;
    
    @Excel(name = "手机")
    private String phone;
    
    @Excel(name = "邮箱")
    private String email;


    /** 提现金额 */
    @Excel(name = "提现金额")
    private BigDecimal amount;

    /** 审核状态 0 待审核 1 未通过 2 已通过 */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=未通过,2=已通过")
    private Integer status;

    /** 提现状态 0 未打款 1 已打款 3 待操作 */
    @Excel(name = "提现状态", readConverterExp="0=未打款,1=已打款,2=待操作")
    private Integer amountStatus;

    /** 申请时间 */
    @Excel(name = "申请时间")
    private Long applyTime;
    
    @Excel(name = "审核原因")
    private String reason;
    
    private int[] userIds;
    

    public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAmountStatus(Integer amountStatus) 
    {
        this.amountStatus = amountStatus;
    }

    public Integer getAmountStatus() 
    {
        return amountStatus;
    }
    public void setApplyTime(Long applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Long getApplyTime() 
    {
        return applyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("amount", getAmount())
            .append("status", getStatus())
            .append("amountStatus", getAmountStatus())
            .append("applyTime", getApplyTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

	public int[] getIds() {
		return ids;
	}

	public void setIds(int[] ids) {
		this.ids = ids;
	}

	public int[] getUserIds() {
		return userIds;
	}

	public void setUserIds(int[] userIds) {
		this.userIds = userIds;
	}
}
